import { TaskListItem } from "../services/task-service";

export const taskStore = {
  state: {
    viewTaskDetail: null,
    createdDailySuccessTask: null
  },
  mutations: {
    setViewTaskDetail(state, payload: TaskListItem) {
      state.viewTaskDetail = payload;
    },
    setCreatedDailySuccessTask(state, payload: TaskListItem) {
      state.createdDailySuccessTask = payload
    }
  }
};
